home *** CD-ROM | disk | FTP | other *** search
- Path: feed.umontreal.ca!spi43!not-for-mail
- From: menars@JSP.UMontreal.CA (MENARD Steve)
- Newsgroups: comp.lang.c++
- Subject: Re: C++ and lex?
- Date: 22 Jan 1996 19:30:44 GMT
- Organization: Universite de Montreal
- Distribution: world
- Message-ID: <4e0ol4$qu0@epervier.CC.UMontreal.CA>
- References: <4dugkp$fl8@apakabar.cc.columbia.edu>
- NNTP-Posting-Host: spi43.jsp.umontreal.ca
- X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
-
- Paul E Gunnells (peg14@aloha.cc.columbia.edu) wrote:
- : Hello everyone:
- :
- : Has anyone ever tried using lex along with iostream.h to handle input?
- : Or better yet, is there some equivalent to lex that works well with
- : C++?
- :
- : Of course, one solution is to have an extern C function yylex() that
- : just returns tokens that your C++ program deals with, but a better
- : solution (at least a cleaner solution) would be a version of lex that
- : allows you to directly incorporate C++ code (streams, constructors)
- : into the lex source.
- :
- : Is there such a beast?
- :
- : Paul Gunnells
- :
- :
- Better yet, is there a YACC that can generate C++ code? I know of one,
- but it is a commercial version.
-
-
- --
- ----------------------------------------------------------------------------
- --- |\_/| Still The One and Only Wolfbane! ---
- --- |o o| " Hey! Why ya lookin' at me so weird? Ain't ya 'ver seen a ---
- --- \ / decker witha horn ?" --- Scy, Troll decker with a CC ---
- --- 0 Steve Menard menars@Jsp.UMontreal.Ca ---
- ----------------------------------------------------------------------------
-